// 自动生成模板SmsMemberPrice
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsMemberPrice表 结构体  SmsMemberPrice
type SmsMemberPrice struct {
	Id              *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                   //id
	SkuId           *int     `json:"skuId" form:"skuId" gorm:"comment:sku_id;column:sku_id;size:19;"`                                //sku_id
	MemberLevelId   *int     `json:"memberLevelId" form:"memberLevelId" gorm:"comment:会员等级id;column:member_level_id;size:19;"`       //会员等级id
	MemberLevelName *string  `json:"memberLevelName" form:"memberLevelName" gorm:"comment:会员等级名;column:member_level_name;size:100;"` //会员等级名
	MemberPrice     *float64 `json:"memberPrice" form:"memberPrice" gorm:"comment:会员对应价格;column:member_price;size:18;"`              //会员对应价格
	AddOther        *bool    `json:"addOther" form:"addOther" gorm:"comment:可否叠加其他优惠[0-不可叠加优惠，1-可叠加];column:add_other;"`             //可否叠加其他优惠[0-不可叠加优惠，1-可叠加]
}

// TableName smsMemberPrice表 SmsMemberPrice自定义表名 sms_member_price
func (SmsMemberPrice) TableName() string {
	return "sms_member_price"
}

type SmsMemberPriceRepo interface {
}

type SmsMemberPriceUsecase struct {
	repo SmsMemberPriceRepo
	log  *log.Helper
}

func NewSmsMemberPriceUsecase(repo GreeterRepo, logger log.Logger) *SmsMemberPriceUsecase {
	return &SmsMemberPriceUsecase{repo: repo, log: log.NewHelper(logger)}
}
